<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="box m">
	<div class="btitle path">
		<a href="goHomePage.html"><spring:message
				code="top.header.homepage" /></a>&nbsp;»&nbsp; <a><c:out
				value="${currentArticle.name }" /></a>
	</div>
	<div class="bCt productLs">
		${currentArticle.description }
		<div id="othercaption" style="margin-top: 10px">
			<h3 style="font-weight: bold;">
				<spring:message code="news.related.articles" />
			</h3>
		</div>
		<div style="float: left; width: 100%; height: auto;">
			<ul style="list-style: url(<c:url value='/images/licate.png'/>)">
				<c:forEach items="${newsList}" var="n">
					<li><a href="viewNews.html?id=${n.id}&page=${param.page}" style="font-size: 12px"><c:out
								value='${n.name }' /></a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="clear"></div>
		<c:if test="${not empty newsList }">
			<c:if test="${newsList[0].totalPage > 1}">
				<div style="text-align: center;" class="pages">
					<div style="display: inline-block;">
						<spring:message code="page.pagination.title" />
						<c:forEach begin="1" end="${newsList[0].totalPage}" step="1"
							var="page">
							<c:if test="${page == param.page }">
								<span class="current">${page}</span>&nbsp;|
							</c:if>

							<c:if test="${!(page == param.page)}">
								<span><a href="viewNews.html?id=${currentArticle.id}&page=${page}">${page}</a></span>&nbsp;|
							</c:if>
						</c:forEach>
					</div>
				</div>
			</c:if>
		</c:if>
	</div>
</div>
